package com.punch.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.punch.common.vo.course.temp.SimpleCourseVO;
import com.punch.common.vo.course.temp.CoursePageVO;
import com.punch.course.model.CourseTemp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * 课程模板表 Mapper 接口
 * </p>
 *
 * @author wjj
 * @since 2020-12-01
 */
@Mapper
public interface CourseTempMapper extends BaseMapper<CourseTemp> {

    Integer queryCount(Map<String, Object> params);

    List<CoursePageVO> queryList(Map<String, Object> params);

    List<SimpleCourseVO> listCourseSimple(@Param("courseName") String courseName,@Param("createId") Long createId);

    /**
     * 修改机构未审核状态下提交的课程
     *
     * @param orgId 机构id
     */
    void updateUnAuditCommit(@Param("orgId") Long orgId);
}
